(function(global){
	$(function(){
		var $form = $("#form");
		$form.on("submit", function(event){
			var formData = new FormData();
			formData.append("key", "value");
			event.stopPropagation();
			event.preventDefault();
			$.ajax({
				url: "portal/login.do?" + $form.serialize(),
				type: "post",
				contentType: false,
                processData: false,
                data: formData
			}).then(function(res){
				
			}, function(res){
				console.log("error：" + JSON.stringify(res));
			});
			return false;
		});
	});
})(this);